// 封装地址相关接口
import request from '@/utils/request'


export const getAddressListService = (params) =>{
    return request({
        url: '/user/member/address',
        method: 'GET',
        params
    })
}

export const addAddressService = (data) =>{
    return request({
        url: '/user/address/add',
        method: 'POST',
        data
    })
}

export const updateAddressService = (data) =>{
    return request({
        url: '/user/address/update',
        method: 'PUT',
        data
    })
}

export const deleteAddressService = (id) =>{
    return request({
        url: '/user/address/delete?id='+id,
        method: 'DELETE'
    })
}
